<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\GoodsImg
 *
 * @property integer $id
 * @property integer $thumb_id 缩略图图片id
 * @property integer $good_id 商品id
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereThumbId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereGoodId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property-read \App\Goods $goods
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsImg withoutTrashed()
 */
class GoodsImg extends Model
{
    protected $table="goods_img";
    use SoftDeletes;

    public function goods(){
        return $this->belongsTo('App\Goods','good_id');
    }
}